package com.kili.file.enums;

/**
 * @author Gordon
 * @version 2019/3/29
 */
public enum FileStatus {

    REGULAR("REGULAR"),
    IRREGULAR("IRREGULAR"),
    FORMAT_ERROR("FORMAT_ERROR"),
    EMPTY_FILE("EMPTY_FILE"),
    NAME_IS_EMPTY("NAME_IS_EMPTY"),
    ILLEGAL_TYPE("ILLEGAL_TYPE");


    private String status;

    FileStatus(String status) {
        this.status = status;
    }

    public static boolean isLegal(FileStatus status) {
        return REGULAR.equals(status);
    }
}
